

package cn.shengchao.examstart.user.ohs.local.messages;

import lombok.Data;

@Data
public class UserInfoDto {
    private String nickName;
    private String avatarUrl;

    public static UserInfoDto of(String name, String avatar) {
        UserInfoDto userInfoDto = new UserInfoDto();
        userInfoDto.setNickName(name);
        userInfoDto.setAvatarUrl(avatar);
        return userInfoDto;
    }
}
